import request from '@/utils/request'

export default{
    // 登录
    login(data) {
        return request({
            url: '/api/user/login',
            data: data,
            method: 'post'
        })
    },

    // 根据name查询user信息
    selectUserByName(name) {
        return request({
            url: '/api/user/selectUserByName/' + name,
            method: 'get'
        })
    },

    // 注册
    signIn(data) {
        return request({
            url: '/api/user/signIn',
            data: data,
            method: 'post'
        })
    }

}
